package com.bdqn.ch04.SL;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

public class JedisTest {

    private JedisAPI jedisAPI;

    @Before
    public void setUp() throws Exception {
        jedisAPI = new JedisAPI();
    }

    @After
    public void tearDown() throws Exception {
        if (jedisAPI != null) {
            jedisAPI.destroy();
        }
    }

    @Test
    public void test(){
        assertNotNull(jedisAPI.get("haha"));
    }


}